# $Id: PKGBUILD 137751 2011-09-10 15:15:36Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: tardo <tardo@nagi-fanboi.net>

pkgname=ndesk-dbus-glib
pkgver=0.4.1
pkgrel=3
pkgdesc="C# GLib implementation of D-Bus"
arch=('any')
url="http://www.ndesk.org/DBusSharp"
license=('custom')
depends=('ndesk-dbus')
makedepends=('pkgconfig')
options=('!makeflags')
source=("http://www.ndesk.org/archive/dbus-sharp/$pkgname-$pkgver.tar.gz")
md5sums=('7faf8770b214956fa9de009def550826')

build() {
  cd $srcdir/$pkgname-$pkgver
  export MONO_SHARED_DIR="${srcdir}/.wabi"
  mkdir -p "${MONO_SHARED_DIR}"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
  install -D COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}
